package com.Day3_sampleCodes.util;

public class StudentRecord {
//Creating own classes
	private String name;
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getMathGrade() {
		return mathGrade;
	}

	public void setMathGrade(double mathGrade) {
		this.mathGrade = mathGrade;
	}

	public double getEnglishGrade() {
		return englishGrade;
	}

	public void setEnglishGrade(double englishGrade) {
		this.englishGrade = englishGrade;
	}

	public double getScienceGrade() {
		return scienceGrade;
	}

	public void setScienceGrade(double scienceGrade) {
		this.scienceGrade = scienceGrade;
	}

	public void setAverage(double average) {
		this.average = average;
	}

	public static void setStudentCount(int studentCount) {
		StudentRecord.studentCount = studentCount;
	}

	private String address;
	private int age;
	private double mathGrade =88;
	private double englishGrade =90;
	private double scienceGrade = 78;
	private double average;
	
	private static int studentCount;
	
	//Returns the name of student
	public String getName()
	{
	return name;
	}

	public double getAverage()
	{
		double result = 0;
		result = (mathGrade+englishGrade+scienceGrade)/3;
		return result;
	}
	
	public void setName(String temp)
	{
		name = temp;
	}
	
	public StudentRecord(String temp){
		this.name = temp;
	}
	
	public StudentRecord(String name, String address){
		this.name = name;
		this.address = address;
	}
	
	public static int getStudentCount()
	{
		return studentCount;
	}
	
	public StudentRecord(double mGrade, double eGrade, double sGrade)
	{
		mathGrade = mGrade;
		englishGrade = eGrade;
		scienceGrade = sGrade;
	}
	
	public void print(String temp){
		System.out.println("Name " + name);
		System.out.println("Address " + address);
		System.out.println("Age" + age);
	}
	
	public void print (double eGrade, double mGrade, double sGrade){
		System.out.println("Name " + name);
		System.out.println("English Grade " + eGrade);
		System.out.println("Math Grade" + mGrade);
		System.out.println("Science Grade " + sGrade);
	}
	
	
}
